package com.neusoft.bizcore.auth.bean;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ChangePasswordBean implements Serializable {

    private static final long serialVersionUID = -724153678048892446L;

    /** 旧密码 */
    @Length(min = 6, max = 18, message = "6~18位密码")
    @NotBlank(message = "密码不能为空")
    private String oldPassword;

    /** 新密码 */
    @Length(min = 6, max = 18, message = "6~18位密码")
    @NotBlank(message = "密码不能为空")
    private String newPassword;
}
